package com.gwsdk.paysdk.bean;

public class SwitchManager {

    private static SwitchManager switchManager;
    public static SwitchManager getInstance() {
        if (switchManager == null) {
            switchManager = new SwitchManager();
        }
        return switchManager;
    }

    public String accountRegister = "1"; //0 关闭,1 开启
    public String phoneRegister = "1"; //0 关闭,1 开启
    public String vipLevel = "0"; //0 关闭,1 开启
    public String floatingNetwork = "0"; //0 关闭,1 开启
    public String share = "0"; //0 关闭,1 开启
    public String floating = "1"; //0 关闭,1 开启
    public String floatingIconUrl = "";
    public String logoutAdvert = "1"; //0 关闭,1 开启
    public String ptbAdd = "1"; //0 关闭,1 开启
    public String changeAccount = "1"; //0 关闭,1 开启

    public boolean isCloseRegister() {
        return !isOpenAccountRegister() && !isOpenPhoneRegister() ;
    }

    public boolean isOpenAccountRegister() {
        return "1".equals(accountRegister);
    }

    public boolean isOpenPhoneRegister() {
        return "1".equals(phoneRegister);
    }

    public boolean vipLevel() {
        return "1".equals(vipLevel);
    }

    public boolean floatingNetwork() {
        return "1".equals(floatingNetwork);
    }

    public boolean share() {
        return "1".equals(share);
    }

    public boolean floating() {
        return "1".equals(floating);
    }

    public boolean logoutAdvert() {
        return "1".equals(logoutAdvert);
    }

    public boolean ptb() {
        return "1".equals(ptbAdd);
    }

    public boolean changeAccount() {
        return "1".equals(changeAccount);
    }



}
